package com.groupbuying.payproducer.connector;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 财务中心
 * @Author Vincentxin
 * @Date 2019/9/3
 */
@Service
@FeignClient(name = "service-financial")
public interface FinancialFeign {
    /**
     * 财务中心余额额支付接口
     *
     * @Author Vincentxin
     * @Date 2019/9/3 10:47
     * @param requestMap
     * @return java.lang.String
     **/
    @PostMapping("/financialBalancePay/balancePay")
    Map<String,Object> balancePay(@RequestParam Map<String,Object> requestMap);

    /**
     * 财务中心积分支付接口
     *
     * @Author Vincentxin
     * @Date 2019/9/11 10:04
     * @param requestMap
     * @return java.util.Map<java.lang.String,java.lang.Object>
     **/
    @PostMapping("/gyintegralpay/integralprepay")
    Map<String,Object> integralprepay(@RequestParam Map<String,Object> requestMap);
}
